/**  
* @author renbangjie renbangjie@126.com  
* @date 2014-11-5 上午11:17:39
* @version V1.0  
* <b>Copyright (c)</b> 2014医信金融信息服务（上海）有限公司-版权所有<br/>
*/
package com.yjd.comm.user.service;

import com.yjd.comm.enums.RelationUserEnums.RelationUserType;
import com.yjd.comm.spread.model.SpreaderModel;
import com.yjd.comm.user.model.UserModel;

/**
 * @author renbangjie renbangjie@126.com
 * @date 2014-11-5 上午11:17:39
 */
public interface IYjdLoginService extends ILoginService {
	
	/**
	 * 用户名是否存在
	* @param uName
	* @return fundsDao
	 * @throws Exception 
	 */
	public boolean uNameIsExits(String uName) throws Exception;
	
	/**
	 * 用户名是否是关键字
	* @param uName
	* @return boolean
	 */
	public boolean uNameIsKeyWords(String uName) throws Exception;
	
	/**
	 * 手机号是否被占用
	* @param mobile
	* @return boolean
	 */
	public boolean mobileIsExits(String mobile) throws Exception;
	
	/**
	 * 邀请人注册
	* @param uModel
	* @param relation
	* @return UserModel
	 * @throws Exception 
	 */
	public UserModel yjdRegister(String uName, String pwd, Long mpNumber, String ip, String relation) throws Exception;
	
	public UserModel yjdRegister(String uName, String pwd, Long mpNumber, String ip, long spreader) throws Exception;
	
	
	/**
	 * 关联邀请人
	* @param idUser
	* @param relation
	* void
	 * @throws Exception 
	 */
	public void initRelationUser(Long idUser, String uName, String relation, RelationUserType relationType) throws Exception;
	
	/**
	 * 关联推广人
	 * @param registUser 注册人
	 * @param spreader  推广人
	 * @param office_id 文档id
	 * @param nowTime 业务时间,一个业务方法里时间要统一
	 * @param spreaderModel 推广人模型
	 * @throws Exception
	 */
	public void initRelationUser(long registUser, long spreader,Integer office_id,long nowTime)throws Exception;
	
}
